<?php echo Modules::run('content/header_content') ?>
 
	<div class="container main">
		<div>
      
      
			<div class="15">
        		<div class="row">
          			<div class="span15 content">
  						<h1>My Account</h1>  
          			</div>
        		</div>
        		<div class="row">
          		<?php $user_id = Modules::run('auth/get_user_id'); ?>
          			<div class="span15 content">
            			<div class="row box-product-row box">
              				<div class="just list" id="orderHistory">
                				<div class="box-product-list mix" style="display:inline-block; opacity:1;">
                  					<div class="row">
                                    	<div class="span14" id="myaccount">
                                        	<h3>My Account</h3>
                                            	<div class="content-account">
                                                	<ul>
                                                    	<li><a href="<?php echo site_url('account/edit/'.$user_id);?>">Edit your account information</a></li>
                                                        <li><a href="<?php echo base_url();?>auth/change_password">Change your password</a></li>
                                                        <?php $customer = $this->order_model->get_customer_by_user($user_id); ?>
                                                        <?php if($customer == NULL){ ?>
                                                        <li><a href="<?php echo base_url();?>account/address_create">Modify your address book entries</a></li>
                                                        <?php }else{ ?>
                                                        <li><a href="<?php echo base_url();?>account/address">Modify your address book entries</a></li>
                                                        <?php } ?>
                                                    </ul>
                                                </div>
                                        	<h3>My Order</h3>
                                            	<div class="content-account">
                                                	<ul>
                                                    	<li><a href="<?php echo base_url();?>account/order">View your order history</a></li>
                                                    </ul>
                                                </div>
                                            <?php $user_id = Modules::run('auth/get_user_id'); ?>
                                            <?php $store = $this->account_model->get_store($user_id); ?>
                                            <?php if(Modules::run('auth/is_login') && $store !=NULL) {?>
                                            <h3>Manage Store</h3>
                                            	<div class="content-account">
                                                	<ul>
                                                    	<li><a href="<?php echo base_url();?>manager">Manage My Store</a></li>
                                                    </ul>
                                                </div>
                                            <?php } ?>
                                        </div>
                  					</div>
               					</div>
              				</div>
			  
              				<div class="clearfix">
           					</div>
             
          				</div>
          
        			</div>
      			</div>
    		</div>
  		</div>
	</div>
</div>



<?php echo Modules::run('content/footer_content') ?>